import { sequelize } from '../../db';
import { Model, DataTypes } from 'sequelize';
class Suggest extends Model { }

Suggest.init({
    title: DataTypes.STRING,
    content: DataTypes.TEXT,
    UserId: DataTypes.INTEGER,
    AtUserId: DataTypes.INTEGER,
    SuggestId: DataTypes.INTEGER,
    readed: {
        type: DataTypes.BOOLEAN,
        defaultValue: false
    },
    step: DataTypes.INTEGER
}, {
    sequelize,
    paranoid: true
});

export default Suggest